package spm.entities;

import java.util.Date;

/**
 * This is a persistent class used by Hibernate. The class represents a task log
 * of the task.
 * 
 * @author Evgeny Ryzhkov
 * 
 * $Id: TaskLog.java 11 2006-12-04 15:04:58Z evgeny.ryzhkov $
 */
public class TaskLog {

	/**
	 * The unique ID of the task log.
	 */
	private Long id;

	/**
	 * The date the task log was created.
	 */
	private Date logDate;

	/**
	 * The description of the done job.
	 */
	private String logDescription;

	/**
	 * The hours are spent for the task within the task log.
	 */
	private int workedHours;

	/**
	 * The task progress indicator (percent).
	 */
	private int taskProgress;

	/**
	 * Tuse user who created the task log. It should be one of the assiged
	 * users.
	 */
	private User user;

	/**
	 * Constructor without parameters. It is required by Hibernate.
	 */
	public TaskLog() {
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the logDate
	 */
	public Date getLogDate() {
		return logDate;
	}

	/**
	 * @param logDate
	 *            the logDate to set
	 */
	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	/**
	 * @return the logDescription
	 */
	public String getLogDescription() {
		return logDescription;
	}

	/**
	 * @param logDescription
	 *            the logDescription to set
	 */
	public void setLogDescription(String logDescription) {
		this.logDescription = logDescription;
	}

	/**
	 * @return the taskProgress
	 */
	public int getTaskProgress() {
		return taskProgress;
	}

	/**
	 * @param taskProgress
	 *            the taskProgress to set
	 */
	public void setTaskProgress(int taskProgress) {
		this.taskProgress = taskProgress;
	}

	/**
	 * @return the workedHours
	 */
	public int getWorkedHours() {
		return workedHours;
	}

	/**
	 * @param workedHours
	 *            the workedHours to set
	 */
	public void setWorkedHours(int workedHours) {
		this.workedHours = workedHours;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

}
